package com.kaibes.web.guard;

import java.util.List;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "kaibes.web.guard", ignoreInvalidFields = true, ignoreUnknownFields = true)
public class GuardProperties {

    private boolean closed;
    private List<RequestLimit> limits;

    public boolean isClosed() {
        return closed;
    }

    public void setClosed(boolean closed) {
        this.closed = closed;
    }

    public List<RequestLimit> getLimits() {
        return limits;
    }

    public void setLimits(List<RequestLimit> limits) {
        this.limits = limits;
    }
    
}
